﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EventEntrance
{
    public class EventEntranceClass
    {
        private String eventName;
        private Client client;
        private DataHelper dh ;//= new DataHelper();
        //constructor
        public EventEntranceClass(String name, long clientId, DataHelper dh)
        {
            this.dh = dh;
            this.eventName = name;
            client = dh.getClient(clientId);
        }
        //return the client
        public Client getClient(long clienId)
        {
            return client;
        }
        public bool entranceEvent(Client c)
        {
            c.Status = "in";
            if (dh.changeStatusClient(c.ClientId) > -1)
            {
                return true;
            }
            return false;

        }

    }
}
